package com.project.controller;
/**
 * 销售统计的controller
 */

import com.github.pagehelper.PageInfo;
import com.project.bean.SellCountBean;
import com.project.service.ISellCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.time.LocalDate;

@Controller
@RequestMapping("sellCount")
public class SellCountController {
    @Autowired
    private ISellCountService service;
    @RequestMapping("/count")
    @ResponseBody
    public PageInfo<SellCountBean> sellCount(int pageNO, String name, LocalDate startDate, LocalDate endDate){
        return service.findByItem(pageNO,name,startDate,endDate );
    }
}
